package cn.school.workflow.dao;

import cn.school.workflow.entity.ActReProcdef;
import cn.school.workflow.vo.WorkFlowHiVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface WorkFlowCommonDao {
    List<ActReProcdef> findProcessDeployList(@Param("vo") ActReProcdef vo, @Param("pageSize")Integer pageSize,
                                             @Param("pageNum")Integer pageNum);
    int findProcessDeployListCount(@Param("vo")ActReProcdef vo);


    List<WorkFlowHiVO> historyWorkFlowList(@Param("vo") WorkFlowHiVO vo);

    List<ActReProcdef> getLastDeployFlow();

    ActReProcdef getFlowByKeyAndVersion(@Param("key")String key, @Param("version")String version);

    ActReProcdef findFlowByTypeAndTenant(String type, String tenantId);
}
